package com.repast.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.repast.common.ServerResponse;
import com.repast.service.ITasteService;

@Controller
@RequestMapping("/taste/")
public class TasteController {
	
	@Autowired
	private ITasteService tasteService;
	
	//状态0成功
	@RequestMapping("list.do")
	@ResponseBody
	public ServerResponse selectTasteList(){
		try {
			return tasteService.selectTasteList();
		} catch (Exception e) {
			return ServerResponse.createByError();
		}
	}
}
